package com.blog.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.entity.SysMenu;

import com.blog.util.dto.AjaxResult;
import com.blog.util.tree.XmTreeVo;
import com.blog.vo.menu.SaveMenuVo;
import com.blog.vo.menu.SysMainMenuVo;

import java.util.List;
import java.util.Map;

/**
 * @author cgx
 * @Date 2022/8/24
 */
public interface SysMenuService extends IService<SysMenu> {

    /**
     * 获取菜单信息
     * @param userId
     * @return
     */
    List<SysMainMenuVo> getMenuInfo(String userId);

    /**
     * 后台获取菜单列表
     * @param
     * @return
     */
    List<Map<String,Object>> tableList();

    /**
     * 获取xm下拉选树形数据
     * @param
     * @return
     */
    List<XmTreeVo> queryMenuXmTree(List<Long> menuIds);

    /**
     * 新增菜单
     * @param menuVo
     * @return
     */
    AjaxResult saveMenu(SaveMenuVo menuVo);
}
